Skip to content

[codex] document runtime target desired state#171

Merged
Pigbibi merged 1 commit into
mainfrom
codex/runtime-target-desired-state-20260707
Jul 6, 2026
Merged

[codex] document runtime target desired state#171
Pigbibi merged 1 commit into
mainfrom
codex/runtime-target-desired-state-20260707

Conversation

@Pigbibi

@Pigbibi Pigbibi commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • document RUNTIME_TARGET_JSON as the desired-state switch contract
  • add scheduler schema support for runtime targets
  • cover scheduler validation paths in runtime settings tests

Validation

  • python3 python/scripts/runtime_settings.py validate
  • python3 -m unittest discover -s python/tests -v
  • git diff --check

Co-Authored-By: Codex <noreply@openai.com>
@cursor

cursor Bot commented Jul 6, 2026

Copy link
Copy Markdown

Bugbot is not enabled for your account, so this pull request was not reviewed.

Enable Bugbot in the Cursor dashboard to get automatic reviews on future PRs.

@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown

🤖 Codex PR Review

⚠️ Human review required: The Codex review could not be completed.

No Codex service URL or API key configured. Set CODEX_AUDIT_SERVICE_URL, ANTHROPIC_API_KEY, or OPENAI_API_KEY.

Please ensure a human reviewer checks this PR before merging.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 73e3d64b00

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +80 to +83
"scheduler": {
"type": "object",
"additionalProperties": false,
"properties": {

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Require complete scheduler payloads in schema

When a target is validated only through schemas/runtime-target.schema.json, a present runtime_target.scheduler can omit timezone, main_time, probe_time, or precheck_time and still pass because this new object has no required list. The Python validator rejects the same payload (validate_runtime_target requires a non-empty timezone and all three time fields), so schema-based consumers can accept targets that later fail runtime_settings.py validate or platform parsing; add the scheduler fields to required to keep the shared schema consistent with the runtime contract.

Useful? React with 👍 / 👎.

Comment on lines +87 to +95
"main_time": {
"type": "string"
},
"probe_time": {
"type": "string"
},
"precheck_time": {
"type": "string"
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Reject malformed scheduler times in the schema

For schema-only validation paths, these new scheduler time fields accept any string, so values such as "45" or "not a cron" pass the shared schema even though runtime_settings.validate_target rejects anything that is not exactly 2 time fields or 5 cron fields. Since schemas/ is documented as shared between Python and JS consumers, this can let an invalid schedule through a schema-based switch preview/apply flow and fail only later in the Python/platform validator; constrain these fields with the same shape that the runtime validator enforces.

Useful? React with 👍 / 👎.

@Pigbibi
Pigbibi merged commit 8c223b0 into main Jul 6, 2026
@Pigbibi
Pigbibi deleted the codex/runtime-target-desired-state-20260707 branch July 6, 2026 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant